/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright (c) 2013-2014 sagyf Yang. The Four Group.
 */

package app.models.booking;

import com.github.sog.annotation.TableBind;
import com.github.sog.plugin.sqlinxml.SqlKit;
import com.jfinal.plugin.activerecord.Model;

import java.util.List;

/**
 * <p>
 * .
 * </p>
 *
 * @author sagyf yang
 * @version 1.0 2014-05-26 22:59
 * @since JDK 1.6
 */
@TableBind(tableName = "ol_dining_market")
public class DiningMarket extends Model<DiningMarket> {
    /**
     * The public dao.
     */
    public static final DiningMarket dao = new DiningMarket();
    private static final long        serialVersionUID = -3202778005186482644L;

    public List<DiningMarket> findByBrandAndStatus(long brandId, boolean status) {
        return find(SqlKit.sql("diningmarket.findByBrandAndStatus"), brandId, status);
    }
    

    public List<DiningMarket> findByBrand(long brand) {
        return find(SqlKit.sql("diningmarket.findByBrand"), brand);
    }
}